/*
 * @Author: xiawei 1243162387@qq.com
 * @Date: 2024-04-18 09:43:21
 * @LastEditors: xiawei 1243162387@qq.com
 * @LastEditTime: 2024-04-19 14:11:47
 */
import { request, type ResponseType } from '../utils/request';
// 获取table列表数据
export const getTableList = (data: any):Promise<ResponseType> => {
    return request.post('/api/table/list', data)
}
// 文件写入
export const writeFile = (data: any):Promise<ResponseType> => {
    return request.post('/api/file/writeFile', data)
}
// 文件读取
export const readFile = (data: any):Promise<ResponseType> => {
    return request.get('/api/file/readFile',        {
        params: {
          file: data,
        }
      })
}
